package com.example.dmservice.exceloutput.service;

//import com.example.dmcommom.ResponseResult;
import com.example.dmcommom.ResponseResult;
import com.example.dmdomain.entity.User;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;

@Service
public interface UserService {

    String register(String phone, String smsCode, String ip) throws ParseException;

    String getSmsCode(String phone) throws Exception;

    ResponseResult logOut(String phone, HttpServletRequest request) throws ParseException;

    String createTempStrTicket(String expire_seconds,String scene_str) throws Exception;

    String getAccessToken() throws Exception;

    String showqrcode(String ticket);

    WechatUser getWechatUser(String scene_str);

    String checkPermission();

    User doRegisterNoAuth(String phone) throws ParseException;
}
